From: Paul Eggert Date: Fri, 11 Mar 2011 07:59:36 +0000 (-0800) Subject: * image.c (x_edge_detection): Remove unnecessary cast that X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~4401^2~12 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c0742b94bd9dda47b875f6fd5b62e220400a7a96;p=emacs.git * image.c (x_edge_detection): Remove unnecessary cast that gcc -Wbad-function-cast diagnoses. --- diff --git a/src/ChangeLog b/src/ChangeLog index 7aa10d2b455..c4e44ac9711 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3,6 +3,8 @@ * image.c (clear_image_cache): Now static. (DIM, HAVE_STDLIB_H_1): Remove unused macros. (xpm_load): Redo to avoid "discards qualifiers" gcc warning. + (x_edge_detection): Remove unnecessary cast that + gcc -Wbad-function-cast diagnoses. 2011-03-11 Paul Eggert diff --git a/src/image.c b/src/image.c index 4befadd44ef..810bd4be989 100644 --- a/src/image.c +++ b/src/image.c @@ -4687,7 +4687,7 @@ x_edge_detection (struct frame *f, struct image *img, Lisp_Object matrix, color_adjust = make_number (0xffff / 2); if (i == 9 && NUMBERP (color_adjust)) - x_detect_edges (f, img, trans, (int) XFLOATINT (color_adjust)); + x_detect_edges (f, img, trans, XFLOATINT (color_adjust)); }